Running executable from /snap/bin hangs
Metadata
Current evaluation
No evaluation has been recorded for this issue yet.
Issue body
I have a snap (https://snapcraft.io/juju-kubectl) that works fine when built and installed via snap locally, but fails when installed via the snap store. It's getting pushed to the snap store by the automatic GitHub build integration, and is using the Rust plugin.
When installed via the snap store, I can run the binary just fine as `/snap/juju-kubectl/current/bin/juju-kubectl`, so it appears to be an issue with snap and not the build process for the binary itself.
When I run `sudo gdb /snap/bin/juju-kubectl`, I get this output repeatedly:
[New LWP 13967]
[New LWP 13968]
[New LWP 13969]
[LWP 13969 exited]
[LWP 13968 exited]
[LWP 13967 exited]
process 12930 is executing new program: /bin/dash
process 12930 is executing new program: /usr/bin/snap
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fe1f55e7700 (LWP 13971)]
[New Thread 0x7fe1f4de6700 (LWP 13972)]
[New Thread 0x7fe1effff700 (LWP 13973)]
[New Thread 0x7fe1ef7fe700 (LWP 13974)]
[New Thread 0x7fe1eeffd700 (LWP 13975)]
[Thread 0x7fe1eeffd700 (LWP 13975) exited]
[Thread 0x7fe1ef7fe700 (LWP 13974) exited]
[Thread 0x7fe1effff700 (LWP 13973) exited]
[Thread 0x7fe1f4de6700 (LWP 13972) exited]
[Thread 0x7fe1f55e7700 (LWP 13971) exited]
process 12930 is executing new program: /snap/core/6673/usr/bin/snap
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fc16b6e4700 (LWP 13978)]
[New Thread 0x7fc16aee3700 (LWP 13979)]
[New Thread 0x7fc16a6e2700 (LWP 13980)]
[New Thread 0x7fc169ee1700 (LWP 13981)]
[New Thread 0x7fc1696e0700 (LWP 13982)]
[Thread 0x7fc1696e0700 (LWP 13982) exited]
[Thread 0x7fc169ee1700 (LWP 13981) exited]
[Thread 0x7fc16a6e2700 (LWP 13980) exited]
[Thread 0x7fc16aee3700 (LWP 13979) exited]
[Thread 0x7fc16b6e4700 (LWP 13978) exited]
process 12930 is executing new program: /snap/core/6673/usr/lib/snapd/snap-confine
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
process 12930 is executing new program: /snap/core/6673/usr/lib/snapd/snap-exec
Evaluation history
No evaluation history available.